/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.chipchip.database.objects;

import org.springframework.data.mongodb.core.mapping.Document;

/**
 *
 * @author Tri
 */
@Document(collection = "Map")
public class DOMap {
    // Static variable
    public static final String KEY_MAP_ID   = "id";
    public static final String KEY_SPEED    = "speed";
    public static final String KEY_LEVEL    ="level";
    public static final String KEY_COMPLETE_TIME    = "completeTime";
    public static final String KEY_COMPLETE_STEP    = "completeStep";
    public static final String KEY_MATRIX           = "matrix";
    public static final String KEY_WON_MONEY        = "wonMoney";
    public static final String KEY_OBSTACLE_LIST    = "obstaclesList";
    public static final String KEY_SUB_OBSTACLE     = "subO";
    
    private String mapID;
    public int speed;
    private int level;
    private int completeTime;
    private int completeSteps;
    private String matrix;
    private int wonMoney;
    private String[] obstaclesList;

    public DOMap(String mapID, int speed, int level, int timeToComplete, int stepsToComplete, String matrix, int wonMoney, String[] obstaclesList) {
        this.mapID = mapID;
        this.speed = speed;
        this.level = level;
        this.completeTime = timeToComplete;
        this.completeSteps = stepsToComplete;
        this.matrix = matrix;
        this.wonMoney = wonMoney;
        this.obstaclesList = obstaclesList;
    }
    
    public DOMap() {
        
    }
    
    public DOMap(String mapID) {
        this.mapID = mapID;
    }
    
    public String[] getObstaclesList() {
        return this.obstaclesList;
    }
    
    public int getLevel() {
        return this.level;
    }
    
    public String getMapID() {
        return this.mapID;
    }
    
    public int getSpeed() {
        return this.speed;
    }
    
    public int getWonMoney() {
        return this.wonMoney;
    }
    
    public int getCompleteSteps() {
        return this.completeSteps;
    }
    
    public int getCompleteTime() {
        return this.completeTime;
    }
    
    public String getMatrix() {
        return this.matrix;
    }
}
